const STORAGE_TOKEN_NAME = 'token';

// save token
export function saveToken(token: string) {
    localStorage.setItem(STORAGE_TOKEN_NAME, token);
}

// get token
export function queryToken(): string {
    return localStorage.getItem(STORAGE_TOKEN_NAME) || '';
}

// remove token
export function removeToken() {
    localStorage.removeItem(STORAGE_TOKEN_NAME);
}